package com.ruoyi.activity.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * #优惠活动商品信息对象 bm_preferential_goods
 * 
 * @author ruoyi
 * @date 2023-08-08
 */
public class BmPreferentialGoods extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 商品规格id */
    private Long id;

    /** 活动id */
    @Excel(name = "活动id")
    private Long preferentialId;

    /** 商品原价格 */
    @Excel(name = "商品原价格")
    private BigDecimal oldPrice;

    /** 商品优惠价格 */
    @Excel(name = "商品优惠价格")
    private BigDecimal newPrice;

    private String goodsName;
    private String specificationName;

    public String getGoodsName() {
        return goodsName;
    }

    public void setGoodsName(String goodsName) {
        this.goodsName = goodsName;
    }

    public String getSpecificationName() {
        return specificationName;
    }

    public void setSpecificationName(String specificationName) {
        this.specificationName = specificationName;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setPreferentialId(Long preferentialId) 
    {
        this.preferentialId = preferentialId;
    }

    public Long getPreferentialId() 
    {
        return preferentialId;
    }
    public void setOldPrice(BigDecimal oldPrice) 
    {
        this.oldPrice = oldPrice;
    }

    public BigDecimal getOldPrice() 
    {
        return oldPrice;
    }
    public void setNewPrice(BigDecimal newPrice) 
    {
        this.newPrice = newPrice;
    }

    public BigDecimal getNewPrice() 
    {
        return newPrice;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("preferentialId", getPreferentialId())
            .append("oldPrice", getOldPrice())
            .append("newPrice", getNewPrice())
            .toString();
    }
}
